import classNames from "classnames";
const flag = Math.random() * 10;

function classNameControl() {
  return (
    <>
      <div className={classNames("list", { active: flag > 5 })}>
        使用classnames库来达到类控制
      </div>
    </>
  );
}
export default classNameControl;
